<html>
<body>
Reports <code>until</code> and <code>rangeTo</code> operators that can be replaced with <code>Collection.indices</code> or iteration over collection inside <code>for</code> loop.
<p>Using syntactic sugar makes your code simpler.</p>
<p>The quick-fix replaces the manual range with the corresponding construction.</p>
<p><b>Example:</b></p>
<pre><code>
  fun main(args: Array&lt;String&gt;) {
      for (index in 0..args.size - 1) {
          println(args[index])
      }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun main(args: Array&lt;String&gt;) {
      for (element in args) {
          println(element)
      }
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>